package com.itheima.domain;

import java.io.Serializable;
import java.util.Date;

public class TripNew implements Serializable {
  private Long id;
  private Long userId;
  private String fromAddress;
  private String toAddress;
  private Date startTime;

  public TripNew(Long id, Long userId, String fromAddress, String toAddress, Date startTime) {
    this.id = id;
    this.userId = userId;
    this.fromAddress = fromAddress;
    this.toAddress = toAddress;
    this.startTime = startTime;
  }

  public TripNew() {
  }

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public Long getUserId() {
    return userId;
  }

  public void setUserId(Long userId) {
    this.userId = userId;
  }

  public String getFromAddress() {
    return fromAddress;
  }

  public void setFromAddress(String fromAddress) {
    this.fromAddress = fromAddress;
  }

  public String getToAddress() {
    return toAddress;
  }

  public void setToAddress(String toAddress) {
    this.toAddress = toAddress;
  }

  public Date getStartTime() {
    return startTime;
  }

  public void setStartTime(Date startTime) {
    this.startTime = startTime;
  }

  @Override
  public String toString() {
    return "TripNew{" +
            "id=" + id +
            ", userId=" + userId +
            ", fromAddress='" + fromAddress + '\'' +
            ", toAddress='" + toAddress + '\'' +
            ", startTime=" + startTime +
            '}';
  }
}
